package manager.analysis;

import manager.data.RawDataObject;
import static manager.utility.StaticFields.*;

public class ValueControl implements Validation {

	public boolean validate(RawDataObject dpo) {
		boolean ok=directionValue(dpo.getDirection());

		//System.out.println("ValueControl: "+ok);
		return ok;
	}

	//controllo se la direzione contiene uno dei valori indicati
	private boolean directionValue(char direction) {
		if(direction==INBOUND || direction==OUTBOUND)
			return true;
		return false;
	}

}
